﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 库位表
    /// </summary>
    public class Locations
    {
        /// <summary>
        /// 库位ID--主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int LocationID {  get; set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        
        [MaxLength(50)]
        public string LocationsCode {  get; set; }
        /// <summary>
        /// 库位名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string LocationName {  get; set; }
        /// <summary>
        /// 库位类型
        /// </summary>
        public LocationType Code { get; set; }
        /// <summary>
        /// 仓库ID--外键
        /// </summary>
        public int Warehouseld { get; set; }
        /// <summary>
        /// 库位数
        /// </summary>
        public int Num {  get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }


    }
}
